home *** CD-ROM | disk | FTP | other *** search
/ SGI Support Advantage Support Libraries 1995 March / SGI Support Advantage Support Libraries 1995 Mar.iso / CDgrelnotes next >
Text File  |  1995-03-08  |  418b  |  24 lines

  1. #!/bin/sh
  2.  
  3. dirname()
  4. {
  5. ans=`/usr/bin/expr \
  6.         "${1:-.}/" : '\(/\)/*[^/]*//*$' `
  7. if [ -n "$ans" ];then
  8.         echo $ans
  9. else
  10.         ans=`/usr/bin/expr \
  11.                 "${1:-.}/" : '\(.*[^/]\)//*[^/][^/]*//*$' `
  12.         if [ -n "$ans" ];then
  13.                 echo $ans
  14.         else
  15.                 echo "."
  16.         fi
  17. fi
  18. exit 0
  19. }
  20.  
  21. SRCDIR=`dirname $0`/relnotes/
  22.  
  23. grelnotes -xrm "Grelnotes*relnotesPath: $SRCDIR"
  24.